using System.ServiceModel;
using System.Collections.Generic;

namespace WCFDicing.ServiceContracts
{
    /// <summary>
    /// prosba o polaczenie gracza do gry
    /// </summary>
    [MessageContract]
    public class JoinRequest
    {
        /// <summary>
        /// gracz dolaczany do gry
        /// </summary>
        private WCFDicing.DataContracts.DicingPlayer playerField;

        /// <summary>
        /// get i set gracz dolaczany do gry
        /// </summary>
        [MessageBodyMember( Order = 0 )]
        public WCFDicing.DataContracts.DicingPlayer player
        {
            get { return playerField; }
            set { playerField = value; }
        }

        /// <summary>
        /// id gry do ktorej podlaczamy
        /// </summary>
        private System.Int32 GameIDField;

        /// <summary>
        /// get i set id gry do ktorej podlaczamy
        /// </summary>
        [MessageBodyMember( Order = 1 )]
        public System.Int32 GameID
        {
            get { return GameIDField; }
            set { GameIDField = value; }
        }
    }
}


